Telegram Group & Telegram Channel
39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings



tg-me.com/java_codings/52
Create:
Last Update:

39. Star Pattern 4.


**
**
**
******
********
**********

class StarPattern4
{

public static void main(String arg[])
{

int num = 12;
int f = 2;
int g = num - 1;

for (int i = 1; i <= (num / 2); i++)
{

for (int j = 1; j <= num; j++)
{

if (j >= f && j <= g)
{

System.out.print(" ");

}
else
{

System.out.print("*");

}
}

f = f + 1;
g = g - 1;

System.out.println();
}
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/52

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Telegram Gives Up On Crypto Blockchain Project

Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. β€œThe technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. β€œUnfortunately, a U.S. court stopped TON from happening.”

Advance Java ‍ from es


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA